﻿using Arim.S4.Api;
using Arim.S4.Client.Base.Dto;

namespace Arim.S4.Client.Service
{
    public class UserAppService : BaseAppService<UserDto>
    {
        public UserAppService() : base(Urls.AUTH.BASE)
        {
        }
        public UserDto Login(UserLoginInput input)
        {
            return this.RestApi.Post(Urls.AUTH.LOGIN, input);
        }

        public void Logout()
        {
            this.RestApi.Post(Urls.AUTH.LOGOUT, null);
        }

        public UserDto ChangePassword(ChangePasswordInput input)
        {
            return this.RestApi.Post(Urls.AUTH.CHANGE_PASSWORD, input);
        }


    }
}
